/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.singleresponsibility.impl;

import za.ac.cput.assignment2.singleresponsibility.CustomerSRPInterface;

/**
 *
 * @author yandiswa
 */
public class CustomerSRPImpl  implements CustomerSRPInterface{
    private String name;
    private String accNo;
    private double accBalance;

    public CustomerSRPImpl(){
       
    }

    public String getName(){
        return name;
    }
    public String getAccNo(){
        return accNo;
    }
    public double getBalance(){
        return accBalance;
    }

    @Override
    public double payAcc(double cash) {
        return accBalance += cash;
    }

    @Override
    public double buyOnAcc(double price) {
        return accBalance -= price;
    }

   
    
}
